home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTSystemTray.pas' rev: 3.00
-
- #ifndef AHMTSystemTrayHPP
- #define AHMTSystemTrayHPP
- #include <AHMSystem.hpp>
- #include <ShellAPI.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Menus.hpp>
- #include <Classes.hpp>
- #include <SysUtils.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtsystemtray
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TAHMSystemTray;
- class PASCALIMPLEMENTATION TAHMSystemTray : public Ahmsystem::TAHMSystemsComponent
- {
- typedef Ahmsystem::TAHMSystemsComponent inherited;
-
- private:
- bool FEnabled;
- System::AnsiString FHint;
- Graphics::TIcon* fIcon;
- Menus::TPopupMenu* fPopupMenu;
- bool FNormalIcon;
- Classes::TNotifyEvent FOnClick;
- Classes::TNotifyEvent FOnDblClick;
- Controls::TMouseEvent FOnRightClick;
- Classes::TNotifyEvent FOnMinimize;
- Classes::TNotifyEvent FOnRestore;
- _NOTIFYICONDATAA FTrayIconData;
- HWND FWindowHandle;
- bool FNewWindows;
- bool fMinimized;
- bool fNoTrayIcon;
- void __fastcall SetPopupMenu(Menus::TPopupMenu* Value);
- void __fastcall SetEnabled(bool Value);
- void __fastcall SetHint(System::AnsiString Value);
- void __fastcall SetIcon(Graphics::TIcon* value);
- void __fastcall SetNormalIcon(bool Value);
-
- protected:
- void __fastcall FillTray(void);
- void __fastcall EmptyTray(void);
- void __fastcall UpdateTray(void);
- void __fastcall WndProc(Messages::TMessage &Msg);
- void __fastcall HandleRightClick(System::TObject* Sender);
- void __fastcall HandleMinimize(System::TObject* Sender);
- void __fastcall HandleRestore(System::TObject* Sender);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
-
- public:
- __fastcall virtual TAHMSystemTray(Classes::TComponent* Owner);
- __fastcall virtual ~TAHMSystemTray(void);
- __property Graphics::TIcon* Icon = {read=fIcon, write=SetIcon};
-
- __published:
- __property bool Enabled = {read=FEnabled, write=SetEnabled, default=0};
- __property System::AnsiString Hint = {read=FHint, write=SetHint};
- __property Menus::TPopupMenu* PopupMenu = {read=fPopupMenu, write=SetPopupMenu};
- __property bool NormalIcon = {read=FNormalIcon, write=SetNormalIcon, default=0};
- __property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
- __property Classes::TNotifyEvent OnDblClick = {read=FOnDblClick, write=FOnDblClick};
- __property Controls::TMouseEvent OnRightClick = {read=FOnRightClick, write=FOnRightClick};
- __property Classes::TNotifyEvent OnMinimize = {read=FOnMinimize, write=FOnMinimize};
- __property Classes::TNotifyEvent OnRestore = {read=FOnRestore, write=FOnRestore};
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtsystemtray */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtsystemtray;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTSystemTray
-